-- GENERATED SPELL FOR [Stormwind Marine] --


function spell0_20556(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20556', 574, 1)
end

function spell1_20556(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_20556', 5257, 1)
end

function Sorts_20556(pUnit, Event)
local choix_sorts_20556 = math.random(0, 1)
if choix_sorts_20556 == 0 then
pUnit:RegisterEvent('spell0_20556', 1, 1)
end
if choix_sorts_20556 == 1 then
pUnit:RegisterEvent('spell1_20556', 1, 1)
end
end

function mob20556_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20556', math.random(1500, 3000), 1)
end

function mob20556_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20556_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20556_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20556, 1, 'mob20556_Action')
RegisterUnitEvent(20556, 2, 'mob20556_Leave')
RegisterUnitEvent(20556, 3, 'mob20556_Kill')
RegisterUnitEvent(20556, 4, 'mob20556_Die')
